package com.xuecheng.content.feignClient;

import com.xuecheng.content.config.MultipartSupportConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 冯佳鑫 又菜又爱学
 * @version 1.0
 * @DATE now()
 * 远程调用搜索服务接口
 */
@Component
@FeignClient(value = "search",
        fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {
    //添加课程文档
    @PostMapping("/search/index/course")
    public Boolean add(@RequestBody CourseIndex courseIndex);
}
